package com.adg.weather;


public class WeatherCode {
	
    private int code;
	
    public WeatherCode() {
        code = 0;
    }
	
    public WeatherCode(int code) {
        this.code = code;
    }
	
    public int getCode(){
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public int getDrawableIconSmall() {
        int draw = 0;
        String desc = "";
		
        switch (code) {
        case 395:
            desc = "Nieve de moderado o alto nivel con tormenta electrica";
            draw = R.drawable.snow64;
            break;

        case 392:
            desc = "Leve nieve con tormenta electrica";
            draw = R.drawable.lightsnow64;
            break;

        case 389:
            desc = "Lluvia moderada o pesada con tormenta electrica";
            draw = R.drawable.thunderstorms64;
            break;

        case 386:
            desc = "Lluvia leve con tormenta electrica";
            draw = R.drawable.thunderstorms64;
            break;

        case 377:
            desc = "Granizo moderado o pesado";
            draw = R.drawable.snow64;
            break;

        case 374:
            desc = "Granizo leve";
            draw = R.drawable.lightsnow64;
            break;

        case 371:
            desc = "Nevando pesada o moderadamente";
            draw = R.drawable.snow64;
            break;

        case 368:
            desc = "Nevada leve";
            draw = R.drawable.lightsnow64;
            break;

        case 365:
            desc = "Lluvia pesada o moderada de aguanieve";
            draw = R.drawable.showers64;
            break;

        case 362:
            desc = "Lluvia ligera de aguanieve";
            draw = R.drawable.lightshowers64;
            break;

        case 359:
            desc = "Lluvia fuerte";
            draw = R.drawable.showers64;
            break;

        case 356:
            desc = "Lluvia pesada o moderada";
            draw = R.drawable.showers64;
            break;

        case 353:
            desc = "Lluvia ligera";
            draw = R.drawable.lightshowers64;
            break;

        case 350:
            desc = "Granizo";
            draw = R.drawable.snow64;
            break;

        case 338:
            desc = "Nieve de alto nivel";
            draw = R.drawable.snow64;
            break;

        case 335:
            desc = "Niebla con nieve de alto nivel";
            draw = R.drawable.snow64;
            break;

        case 332:
            desc = "Nieve moderada";
            draw = R.drawable.snow64;
            break;

        case 329:
            desc = "Niebla con nieve moderada";
            draw = R.drawable.snow64;
            break;

        case 326:
            desc = "Nieve ligera";
            draw = R.drawable.lightsnow64;
            break;

        case 323:
            desc = "Niebla con nieve ligera";
            draw = R.drawable.lightsnow64;
            break;

        case 320:
            desc = "Moderada o pesada aguanieve";
            draw = R.drawable.snow64;
            break;

        case 317:
            desc = "Ligera aguanieve";
            draw = R.drawable.lightsnow64;
            break;

        case 314:
            desc = "Lluvia fria moederada o pesada";
            draw = R.drawable.rain64;
            break;

        case 311:
            desc = "Lluvia fria ligera";
            draw = R.drawable.lightrain64;
            break;

        case 308:
            desc = "Lluvia fuerte";
            draw = R.drawable.rain64;
            break;

        case 305:
            desc = "Lluvia fuerte por momentos";
            draw = R.drawable.rain64;
            break;

        case 302:
            desc = "Lluvia moderada";
            draw = R.drawable.rain64;
            break;

        case 299:
            desc = "Lluvia moderada por momentos";
            draw = R.drawable.rain64;
            break;

        case 296:
            desc = "Luvia ligera";
            draw = R.drawable.lightrain64;
            break;

        case 293:
            desc = "Lluvia ligera con neblina";
            draw = R.drawable.lightrain64;
            break;

        case 284:
            desc = "Heavy freezing drizzle";
            draw = R.drawable.showers64;
            break;

        case 281:
            desc = "Llovizna fria";
            draw = R.drawable.showers64;
            break;

        case 266:
            desc = "Llovizna ligera";
            draw = R.drawable.lightshowers64;
            break;

        case 263:
            desc = "Llovizna ligera con neblina";
            draw = R.drawable.lightshowers64;
            break;

        case 260:
            desc = "Niebla fria";
            draw = R.drawable.fog64;
            break;

        case 248:
            desc = "Niebla";
            draw = R.drawable.fog64;
            break;

        case 230:
            desc = "Ventisca";
            draw = R.drawable.snow64;
            break;

        case 227:
            desc = "Viento y nieve";
            draw = R.drawable.lightsnow64;
            break;

        case 200:
            desc = "Llovizna de rayos cerca";
            draw = R.drawable.thunder64;
            break;

        case 185:
            desc = "Ventisca fria con neblina cercana";
            draw = R.drawable.lightshowers64;
            break;

        case 182:
            desc = "Aguanieve con neblina cerca";
            draw = R.drawable.lightshowers64;
            break;

        case 179:
            desc = "Nieve con neblina cerca";
            draw = R.drawable.lightsnow64;
            break;

        case 176:
            desc = "Lluvioso con niebla cerca";
            draw = R.drawable.lightrain64;
            break;

        case 143:
            desc = "Neblina";
            draw = R.drawable.fog64;
            break;

        case 122:
            desc = "Despejado";
            draw = R.drawable.overcast64;
            break;

        case 119:
            desc = "Nublado";
            draw = R.drawable.cloudy64;
            break;

        case 116:
            desc = "Parcialmente nublado";
            draw = R.drawable.sunnyinterval64;
            break;

        case 113:
            desc = "Despejado/Soleado";
            draw = R.drawable.sunny64;
            break;

        default:
            desc = "Sin descripcion disponible";
            break;
			
        }
		
        return draw;
    }

    public int getDrawableIcon() {
        int draw = 0;
        String desc = "";
		
        switch (code) {
        case 395:
            desc = "Nieve moderada o pesada con truenos";
            draw = R.drawable.snow128;
            break;

        case 392:
            desc = "Nieve ligera con neblina y truenos";
            draw = R.drawable.lightsnow128;
            break;

        case 389:
            desc = "Lluvia moderada o pesada con truenos";
            draw = R.drawable.thunderstorms128;
            break;

        case 386:
            desc = "Lluvia ligera con niebla y truenos";
            draw = R.drawable.thunderstorms128;
            break;

        case 377:
            desc = "Lluvia moderada o pesada de granizo";
            draw = R.drawable.snow128;
            break;

        case 374:
            desc = "Lluvia ligera de granizo";
            draw = R.drawable.lightsnow128;
            break;

        case 371:
            desc = "Moderada o pesada nevada";
            draw = R.drawable.snow128;
            break;

        case 368:
            desc = "Nevada ligera";
            draw = R.drawable.lightsnow128;
            break;

        case 365:
            desc = "Moderado o pesado granizo";
            draw = R.drawable.showers128;
            break;

        case 362:
            desc = "Granizo ligero";
            draw = R.drawable.lightshowers128;
            break;

        case 359:
            desc = "Torrente de lluvia";
            draw = R.drawable.showers128;
            break;

        case 356:
            desc = "Lluvia moderada o pesada";
            draw = R.drawable.showers128;
            break;

        case 353:
            desc = "Lluvia ligera";
            draw = R.drawable.lightshowers128;
            break;

        case 350:
            desc = "Granizo";
            draw = R.drawable.snow128;
            break;

        case 338:
            desc = "Nieve pesada";
            draw = R.drawable.snow128;
            break;

        case 335:
            desc = "Nieve pesada con neblina";
            draw = R.drawable.snow128;
            break;

        case 332:
            desc = "Nieve moderada";
            draw = R.drawable.snow128;
            break;

        case 329:
            desc = "Nieve moderada con neblina";
            draw = R.drawable.snow128;
            break;

        case 326:
            desc = "Nieve ligera";
            draw = R.drawable.lightsnow128;
            break;

        case 323:
            desc = "Nieve lligera con neblina";
            draw = R.drawable.lightsnow128;
            break;

        case 320:
            desc = "Aguanieve moderada o pesada";
            draw = R.drawable.snow128;
            break;

        case 317:
            desc = "Aguanieve ligera";
            draw = R.drawable.lightsnow128;
            break;

        case 314:
            desc = "Moderada o pesada lluvia helada";
            draw = R.drawable.rain128;
            break;

        case 311:
            desc = "Lluvia helada ligera";
            draw = R.drawable.lightrain128;
            break;

        case 308:
            desc = "Lluvia pesada";
            draw = R.drawable.rain128;
            break;

        case 305:
            desc = "Lluvia pesada en momentos";
            draw = R.drawable.rain128;
            break;

        case 302:
            desc = "Lluvia moderada";
            draw = R.drawable.rain128;
            break;

        case 299:
            desc = "Lluvia moderada por momentos";
            draw = R.drawable.rain128;
            break;

        case 296:
            desc = "Lluvia ligera";
            draw = R.drawable.lightrain128;
            break;

        case 293:
            desc = "Lluvia ligera con neblina";
            draw = R.drawable.lightrain128;
            break;

        case 284:
            desc = "Llovizna pesada helada";
            draw = R.drawable.showers128;
            break;

        case 281:
            desc = "Llovizna helada";
            draw = R.drawable.showers128;
            break;

        case 266:
            desc = "Llovizna ligera";
            draw = R.drawable.lightshowers128;
            break;

        case 263:
            desc = "Llovizna ligera con niebla";
            draw = R.drawable.lightshowers128;
            break;

        case 260:
            desc = "Niebla helada";
            draw = R.drawable.fog128;
            break;

        case 248:
            desc = "Niebla";
            draw = R.drawable.fog128;
            break;

        case 230:
            desc = "Ventisca";
            draw = R.drawable.snow128;
            break;

        case 227:
            desc = "Viento y nieve";
            draw = R.drawable.lightsnow128;
            break;

        case 200:
            desc = "Tormenta electrica cercana";
            draw = R.drawable.thunder128;
            break;

        case 185:
            desc = "Llovizna helada con neblina cerca";
            draw = R.drawable.lightshowers128;
            break;

        case 182:
            desc = "Agua nieve con neblina cerca";
            draw = R.drawable.lightshowers128;
            break;

        case 179:
            desc = "Nieve con neblina cerca";
            draw = R.drawable.lightsnow128;
            break;

        case 176:
            desc = "Lluvia con neblina cerca";
            draw = R.drawable.lightrain128;
            break;

        case 143:
            desc = "Neblina";
            draw = R.drawable.fog128;
            break;

        case 122:
            desc = "Despejado";
            draw = R.drawable.overcast128;
            break;

        case 119:
            desc = "Nublado";
            draw = R.drawable.cloudy128;
            break;

        case 116:
            desc = "Parcialmente nublado";
            draw = R.drawable.sunnyinterval128;
            break;

        case 113:
            desc = "Despejado/Soleado";
            draw = R.drawable.sunny128;
            break;

        default:
            desc = "Sin descripcion disponible";
            break;
			
        }
		
        return draw;
    }

    public String getDescription() {
        String desc = "";
		
        switch (code) {
        case 395:
            desc = "Nieve moderada o pesada con turenos";
            break;

        case 392:
            desc = "Nieve ligera con neblina y truenos";
            break;

        case 389:
            desc = "Lluvia moderada o pesada con truenos";
            break;

        case 386:
            desc = "Lluvia ligera con neblina y truenos";
            break;

        case 377:
            desc = "Granizo moderado o pesado";
            break;

        case 374:
            desc = "Granizo ligero";
            break;

        case 371:
            desc = "Nevada moderada o pesada";
            break;

        case 368:
            desc = "Nevada ligera";
            break;

        case 365:
            desc = "Aguanieve moderada o pesada";
            break;

        case 362:
            desc = "Aguanieve ligera";
            break;

        case 359:
            desc = "Torrente de lluvias";
            break;

        case 356:
            desc = "Lluvia moderada o pesada";
            break;

        case 353:
            desc = "Lluvia ligera";
            break;

        case 350:
            desc = "Granizo";
            break;

        case 338:
            desc = "Nieve pesada";
            break;

        case 335:
            desc = "Nieve pesada con neblina";
            break;

        case 332:
            desc = "Nieve moderada";
            break;

        case 329:
            desc = "Nieve moderada con neblina";
            break;

        case 326:
            desc = "Nieve ligera";
            break;

        case 323:
            desc = "Nieve ligera con neblina";
            break;

        case 320:
            desc = "Aguanieve moderada o pesada";
            break;

        case 317:
            desc = "Aguanieve ligera";
            break;

        case 314:
            desc = "Lluvia helada moderada o pesada";
            break;

        case 311:
            desc = "Lluvia ligera helada";
            break;

        case 308:
            desc = "Lluvia pesada";
            break;

        case 305:
            desc = "Lluvia pesada por momentos";
            break;

        case 302:
            desc = "Lluvia moderada";
            break;

        case 299:
            desc = "Lluvia moderada por momentos";
            break;

        case 296:
            desc = "Lluvia ligera";
            break;

        case 293:
            desc = "Lluvia ligera con neblina";
            break;

        case 284:
            desc = "Llovizna pesada helada";
            break;

        case 281:
            desc = "Llovizna helada";
            break;

        case 266:
            desc = "Llovizna ligera";
            break;

        case 263:
            desc = "Llovizna ligera con neblina";
            break;

        case 260:
            desc = "Niebla helada";
            break;

        case 248:
            desc = "Niebla";
            break;

        case 230:
            desc = "Ventisca";
            break;

        case 227:
            desc = "Viento y nieve";
            break;

        case 200:
            desc = "Tormenta electrica cercana";
            break;

        case 185:
            desc = "Llovizna helada con neblina cerca";
            break;

        case 182:
            desc = "Aguanieve con neblina cerca";
            break;

        case 179:
            desc = "Nieve con neblina cerca";
            break;

        case 176:
            desc = "Lluvia con neblina cerca";
            break;

        case 143:
            desc = "Neblina";
            break;

        case 122:
            desc = "Despejado";
            break;

        case 119:
            desc = "Nublado";
            break;

        case 116:
            desc = "Parcialmente nublado";
            break;

        case 113:
            desc = "Despejado/Soleado";
            break;

        default:
            desc = "Sin descripcion disponible";
            break;
			
        }
		
        return desc;
    }

}
